package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.system.domain.JiajiaWorkerTimeConfig;
import com.ruoyi.system.mapper.JiajiaWorkerTimeConfigMapper;
import com.ruoyi.system.service.IJiajiaWorkerTimeConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 社工接单时间配置Service业务层处理
 * 
 * @author 郑鑫
 * @date 2024-04-24
 */
@Service
public class JiajiaWorkerTimeConfigServiceImpl implements IJiajiaWorkerTimeConfigService
{
    @Autowired
    private JiajiaWorkerTimeConfigMapper jiajiaWorkerTimeConfigMapper;

    /**
     * 查询社工接单时间配置
     * 
     * @param id 社工接单时间配置主键
     * @return 社工接单时间配置
     */
    @Override
    public JiajiaWorkerTimeConfig selectJiajiaWorkerTimeConfigById(Long id)
    {
        return jiajiaWorkerTimeConfigMapper.selectJiajiaWorkerTimeConfigById(id);
    }

    /**
     * 查询社工接单时间配置列表
     * 
     * @param jiajiaWorkerTimeConfig 社工接单时间配置
     * @return 社工接单时间配置
     */
    @Override
    public List<JiajiaWorkerTimeConfig> selectJiajiaWorkerTimeConfigList(JiajiaWorkerTimeConfig jiajiaWorkerTimeConfig)
    {
        return jiajiaWorkerTimeConfigMapper.selectJiajiaWorkerTimeConfigList(jiajiaWorkerTimeConfig);
    }

    /**
     * 新增社工接单时间配置
     * 
     * @param jiajiaWorkerTimeConfig 社工接单时间配置
     * @return 结果
     */
    @Override
    public int insertJiajiaWorkerTimeConfig(JiajiaWorkerTimeConfig jiajiaWorkerTimeConfig)
    {
        return jiajiaWorkerTimeConfigMapper.insertJiajiaWorkerTimeConfig(jiajiaWorkerTimeConfig);
    }

    /**
     * 修改社工接单时间配置
     * 
     * @param jiajiaWorkerTimeConfig 社工接单时间配置
     * @return 结果
     */
    @Override
    public int updateJiajiaWorkerTimeConfig(JiajiaWorkerTimeConfig jiajiaWorkerTimeConfig)
    {
        return jiajiaWorkerTimeConfigMapper.updateJiajiaWorkerTimeConfig(jiajiaWorkerTimeConfig);
    }

    /**
     * 批量删除社工接单时间配置
     * 
     * @param ids 需要删除的社工接单时间配置主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerTimeConfigByIds(String ids)
    {
        return jiajiaWorkerTimeConfigMapper.deleteJiajiaWorkerTimeConfigByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除社工接单时间配置信息
     * 
     * @param id 社工接单时间配置主键
     * @return 结果
     */
    @Override
    public int deleteJiajiaWorkerTimeConfigById(Long id)
    {
        return jiajiaWorkerTimeConfigMapper.deleteJiajiaWorkerTimeConfigById(id);
    }
}
